/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.pe.siass.dao;

import com.pe.siass.beans.CasosBean;
import java.util.List;
import org.apache.ibatis.session.SqlSession;

/**
 *
 * @author Hrengifo
 */
public class CasosDao {

    public CasosBean insertCasos(CasosBean casosBean, SqlSession sqlSession) throws Exception{
         sqlSession.insert("insertCasos", casosBean);
         return casosBean;
    }

    public int updateCasos(CasosBean casosBean, SqlSession sqlSession) throws Exception{
         int aux = sqlSession.update("updateCasos", casosBean);
         return aux;
    }

    public List<CasosBean> selectCasos(CasosBean casosBean, SqlSession sqlSession) throws Exception{
         List<CasosBean> lstCasosBean = sqlSession.selectList("selectCasos", casosBean);
        return lstCasosBean;
    }

}
